<script>
// webpack.config.js
var path = require('path');

{
    // ...
    resolve: {
        alias: {
            // Adapt the relative path accordingly
            'angular-tlp': path.resolve(__dirname, '../../src/www/themes/common/tlp/angular-tlp/index.js'),
        }
    },
    externals: {
        tlp: 'tlp'
    },
    // ...
}
</script>
<script>
// app.js OR similar main AngularJS module
import angular            from 'angular';
import angular_tlp_module from 'angular-tlp';

export default angular.module('my-main-module', [
    angular_tlp_module,
    //... other modules
])
// services, controllers, etc...
.name;
</script>
